package com.leyou.item.service;

import com.leyou.pojo.SpecGroup;
import com.leyou.pojo.SpecParam;

import java.util.List;

/**
 *
 * @author XiaoLuo
 * @ClassName: SpecService
 * @Description: ${todo}
 * @date 2019/4/17 17:28
 */
public interface SpecService {
	/**
	 * 根据商品分类ID查询分类对应的规格组
	 * @param cid
	 * @return
	 */
	List<SpecGroup> querySpecGroups(Long cid);

	/**
	 * 根据商品规则组的id查询对应的规格参数
	 *
	 *
	 *或者根据商品分类的ID查询对应的规格参数
	 * @param cid
	 * @param gid
	 * @param searching
	 * @param generic
	 * @return
	 */
	List<SpecParam> querySpecParam( Long gid,Long cid, Boolean searching,
			Boolean generic);
}
